<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>CSDN论坛</title>
</head>
<body>
<h1 style="text-align: left;color: darkblue;">&emsp;&ensp;欢迎来到CSDN</h1>
<div style="text-align: left;margin-top: 30px;">
    &emsp;&emsp;&emsp;&emsp; <input type="button" class="button" value="上一次登录身份进入CSDN" onclick="home_click()">
    &emsp;&emsp; <input type="button" class="button" value="进入游客身份访问CSDN" onclick="visitor_click()">
</div>
<script>
    function home_click(){
        let status=localStorage.getItem("status");
        console.log(status);
        if(status==="管理员"){
            window.location.href="./static/html/master.html";
        }
        else
        window.location.href="./static/html/csdn.html";
    }
    function visitor_click(){
        localStorage.setItem("loginName", "游客");
        window.location.href="./static/html/csdn.html";
    }
</script>
</body>
</html>